package cn.csdj.sism.service;

import cn.csdj.sism.pojo.Consultant;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;
import java.util.Map;

/**
 * ConsultantService接口
 * @author 夏锦红
 * 2023/4/7
 */
public interface ConsultantService {
    /**
     * 添加
     * @param consultant
     * @return
     */
    public int insert(Consultant consultant);
    /**
     * 按id删除
     * @param id
     * @return
     */
    public int deleteById(Integer id);
    /**
     * 查询全部
     * @return
     */
    public List<Consultant> selectAll();
    /**
     * 按id查询
     * @param id
     * @return
     */
    public Consultant selectById(Integer id);

    /**
     * 修改
     *
     * @param consultant
     * @return
     */
    public int update(Consultant consultant);

    IPage<Consultant> selectPages(Integer current, Integer pageSize);

}
